package org.graduation.model.dtos.RBAC;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.graduation.model.common.RBAC.Roles;

@Data
@NoArgsConstructor
public class AssignAndRevokeRoleDTO extends PermissionsInfoDTO {
    protected Integer rolesId;
    protected Roles roles;

    public AssignAndRevokeRoleDTO(Long pId, Integer uid, Integer rolesId) {
        super(pId, uid);
        this.rolesId = rolesId;
        this.roles = Roles.valueOf(rolesId);
    }

    public AssignAndRevokeRoleDTO(Integer rolesId) {
        this.rolesId = rolesId;
    }
}
